package com.stardust.pojo;
/**
 * 实现用户表的对象映射
 */

import java.util.Date;

public class User {
    private Integer id;
    private String username;
    private String password;
    private String loginIP;
    private Date loginDate;

    public User() {
    }

    public User(Integer id, String username, String password, String loginIP, Date loginDate) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.loginIP = loginIP;
        this.loginDate = loginDate;
    }

    @Override
    public String toString() {
        return "com.stardust.pojo.User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", loginIP='" + loginIP + '\'' +
                ", loginDate=" + loginDate +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLoginIP() {
        return loginIP;
    }

    public void setLoginIP(String loginIP) {
        this.loginIP = loginIP;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }
}
